package com.remist.service;

import java.util.LinkedList;
import java.util.List;

import com.remist.model.ProductType;

public interface ProductTypeService {
	
	public ProductType addProductType(ProductType productTypeBean);
	public boolean updateProductType(ProductType productTypeBean);
	public boolean deleteProductType(ProductType productTypeBean);
	public List<ProductType> listSonProductTypeByParentKey(ProductType productTypeBean);
	public ProductType getProductTypeByKey(ProductType bean);
	public ProductType getParentTypeByParentKey(ProductType bean );
	public LinkedList<ProductType> listAllParents(ProductType bean);
	public List<ProductType> listChilds(ProductType bean);
	public ProductType getProductTypeByName(ProductType bean);
	
}
